package com;

import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.user.utils.BeanUtils;
import sun.applet.Main;

/**
 * @ClassName test
 * @Description: 类描述
 * @Author: admin
 * @CreateDate: 2024/6/23 17:40
 * @UpdateUser: 更新人
 * @UpdateDate: 2024/6/23 17:40
 * @UpdateRemark: 更新的信息
 * @Version: 1.0
 */


public class test {
    public static void main(String[] args) {
        UserInfo userInfo = new UserInfo();
        userInfo.setName("123456");
        userInfo.setPhone("12345678901");

        UserInfo userInfo1 = new UserInfo();
        userInfo1.setNickName("admin");
        BeanUtils.copyBean(userInfo, userInfo1,UserInfo.class);
        System.out.println(userInfo);
        System.out.println(userInfo1);
    }
}
